package com.guigu.controller;

import com.guigu.ProcureDetailsService;
import com.guigu.pojo.ProcureDetails;
import com.guigu.vo.ProcureDetailsList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@CrossOrigin
@RequestMapping("ProcureDetails")
@RestController
public class ProcureDetailsController {
    @Autowired
    private ProcureDetailsService procureDetailsService;
    @PostMapping("One/{ParentId}")
    public List<ProcureDetailsList> One(@PathVariable int ParentId) {
        return  procureDetailsService.selectParentId(ParentId);
    }
}
